<link rel="import" href="../../bower_components/polymer/polymer-element.html">

<dom-module id="data-bind">
  <template>
    <style>
      :host{
        display: block;
      }
    </style>
    <div>
        <span>name:[[user.name]]</span><br />
        <span>age:[[user.age]]</span>
    </div>
  </template>

  <script>
    /**
     * @DataBind
     * @polymer
     */
    class DataBind extends Polymer.Element {
      static get is() { return 'data-bind'; }
      static get properties(){
        return {
          user:{
            type: Object,
            value:{
                name:"zhongzhong",
                age:25
            }
          }
        }
      }
    }
    window.customElements.define(DataBind.is, DataBind);

  </script>
</dom-module>


